package com.venutech.gongan.common;

//常量值
public class Constants {
    //角色常量值
    //1.管理员民警
    public final static int ADMIN_POLICE_NUMBER = 1;
    //2.办案民警
    public final static int CASE_POLICE_NUMBER = 2;
    //3.网格员
    public final static int GRID_POLICE_NUMBER = 3;
    //4.百姓
    public final static int COMMON_POLICE_NUMBER = 4;

    //半径
    public final static double COMMON_RADIUS = 0.01;

    //是否锁定用户：0正常
    public final static int UNLOCKED = 0;

    //是否锁定用户：1锁定
    public final static int LOCKED = 1;

    //后台 0
    public final static int BACK = 0;

    //前台 1
    public final static int API = 1;

    //日志状态 正常
    public final static int LOG_OK = 0;

    //日志状态 异常
    public final static int LOG_NO = 1;
    //查询
    public final  static  int QUERY=0;

    //插入
    public final static int INSERT = 1;

    //修改
    public final static int UPDATE = 2;

    //删除
    public final static int DELETE = 3;

    // 查看详情
    public final static int VIEW = 4;

    // 登录
    public final static int LOGIN = 5;

    // 登出
    public final static int LOGOUT = 6;

    // 下载
    public final  static  int DOWN=7;

    public static final  String SUCCESS = "success";

    public static final  String ERROR = "error";

    public static final  String CODE_OK = "200";//成功

    public static final  String CODE_NO = "400";//失败

    public final static String RESERVED_EMPLOYEE_NO_ROOT = "root";       // 保留用户密码

    public final static String RESERVED_ROLE_NAME_ADMIN = "ADMIN";       // 保留用户角色名称

    public final static String RESERVED_ROLE_NAME_WECHATMINI = "WECHATMINI";

    public final static String PLATFORM_CODE_WECHATPUBLIC = "wechatPublic";

    public final static String PLATFORM_CODE_WECHATMINI = "wechatMini";

    public final static String PLATFORM_CODE_SUZHOUDAO = "Suzhoudao";

    public static final int OPEN_PLATFORM_USER_SUBSCRIBE = 1;

    public static final int OPEN_PLATFORM_USER_UNSUBSCRIBE = 0;

    public static final String SYS_DEFAULT_ENCODING = "UTF-8"; // 系统默认编码

    public static final int WECHAT_ERR_CODE_SUCCESS = 0;

    public static final int PRIVILEGE_TYPE_MENU = 0;

    public static final int PRIVILEGE_TYPE_BUTTON  = 1;

    public static final String PRIVILEGE_CODE_USER_MENU = "userList";

    public static final String PRIVILEGE_CODE_USERGROUP_MENU = "userGroupList";

    public static final String PRIVILEGE_CODE_ROLE_MENU = "roleList";

    public static final String PRIVILEGE_CODE_PRIVILEGE_MENU = "privilegeList";

    public static final String PRIVILEGE_CODE_VIDEO_APPROVAL_MENU = "videoApprovalList";

    public static final String PRIVILEGE_CODE_QRCODE_MENU = "qrCodeList";

    public static final String PRIVILEGE_CODE_POLE_MENU = "poleList";

    public static final String PRIVILEGE_CODE_EQUIP_MENU = "equipList";

    public static final String PRIVILEGE_CODE_GMAP_MENU = "gmap";

    public static final String PRIVILEGE_CODE_VIDEO_DOWNLOAD_MENU = "videoDownloadList";

    public static final String PRIVILEGE_CODE_DICTTYPE_MENU = "dictTypeList";

    public static final String PRIVILEGE_CODE_DICTDATA_MENU = "dictDataList";

    public static final String PRIVILEGE_CODE_RZLOG_MENU = "rzlogList";

    public static final String PRIVILEGE_CODE_FACE_RECOGNITION_MENU = "faceRecognitionWorkList";

    public static final String PRIVILEGE_CODE_WORK_MENU = "workList";

    public static final String PRIVILEGE_CODE_PATROL_WORK_MENU = "patrolWorkList";

    public static final String PRIVILEGE_CODE_OP_WORK_MENU = "opWorkList";

    public static final String PRIVILEGE_CODE_OP_WORK_REPORT_MENU = "opWorkReportList";

    public static final String PRIVILEGE_CODE_SERVER_WORK_MENU = "serverWorkList";

    public static final String PRIVILEGE_CODE_EQUIPBIND_WORK_MENU = "equipBindingWorkList";

    public static final String PRIVILEGE_CODE_MY_HISTORY_WORK_MENU = "histroyWorkList";

    public static final String PRIVILEGE_CODE_MY_APPROVAL_WORK_MENU = "approvalWorklList";

    public static final String PRIVILEGE_CODE_BARCODE_MENU = "barcodeList";

    public static final String PRIVILEGE_CODE_XUN_JIAN_MENU = "xunJian";

    public static final String PRIVILEGE_CODE_REPORT_MENU = "statisticalReport";

    /**
     * 资源code（数据权限校验用）
     */
    public static final String RESOURCE_CODE_QDSXJ = "QDSXJ";      // 监控设备

    public static final String RESOURCE_CODE_QRCODE = "QRCODE";     // 二维码

    public static final String RESOURCE_FIELD_CODE_XZQY = "sb_xzqy";     // 行政区域编码

    /**
     * 工单类型
     */

    public static final int WORK_TYPE_REPORT = 1;       // 事件上报工单

    public static final int WORK_TYPE_EARLY_WARNING = 2;    // 人脸识别申请工单

    public static final int WORK_TYPE_VIDEO_PRIVILEGE_APPLICATION = 3;   // 视频权限申请工单

    public static final int WORK_TYPE_PATROL = 4;         // 巡检打卡

    /**
     * 工单状态
     */
    public static final int WORK_STATE_IN_PROGRESS = 0;        // 审批中

    public static final int WORK_STATE_APPROVED = 1;           // 审批通过

    public static final int WORK_STATE_REJECTED = 2;           // 审批驳回

    /**
     * 临时用户类型
     */
    public static final int TEMP_USER_TYPE_WORKER = 0;     // 施工人员

    public static final int TEMP_USER_TYPE_COMPANY = 1;    // 公司用户

    public static final int TEMP_USER_TYPE_ADMIN = 2;       // 管理者

    public static final int EQUIP_BINDING_WORK_STATE_NOT_HANDLED = 0;     // 设备绑定工单状态：未处理

    public static final int EQUIP_BINDING_WORK_STATE_HANDLED = 1;         //  设备绑定工单状态：已处理

    public static final int CHANGE_BIND_TYPE_MISSING = 0;      // 二维码换绑原因：失踪

    public static final int CHANGE_BIND_TYPE_DAMAGED = 1;      // 二维码换绑原因：毁损

    public static final int IVS_RESULT_CODE_SUCCESS = 0;


    public static  final  int ADD_EARLY_WARNING_OPERATE=2; //人脸识别-新增

    /**
     * 设备状态： 1正常，2报修，3报停
     */
    public static final int EQUIP_STATUS_NORMAL = 1;

    public static final int EQUIP_STATUS_MAINTAIN = 2;

    public static final int EQUIP_STATUS_STOP = 3;

    /*
    IVS 摄像机类型
     */
    public static final int IVS_CAMERA_TYPE_FIXED_GUN = 0;  // 固定枪机

    public static final int IVS_CAMERA_TYPE_CLOUD_GUN = 1;  //有云台枪机

    public static final int IVS_CAMERA_TYPE_BALL = 2;       // 球机

    public static final int IVS_CAMERA_TYPE_HALF_BALL = 3;  // 半球机

    public static final int IVS_CAMERA_TYPE_CYLINDER = 4;    // 筒机

    /*
    IVS 设备类型
     */
    public static final int IVS_DEVICE_TYPE_CAMERA = 2;     // 摄像机设备

    public static final int IVS_DEVICE_TYPE_ALARM_DEVICE = 4;   // 告警设备

    public static final int IVS_DEVICE_TYPE_SHADOW_CAMERA = 30;  // 影子摄像机

    public static final int IVS_DEVICE_TYPE_NORMAL_AND_SHADOW_CAMERA = 32;   // 普通摄像机和影子摄像机

    public static final int IVS_DEVICE_TYPE_CAMREA_WITH_LAT_AND_LONG = 33;    // 带有经纬度扩展信息的摄像机

    public static final int IVS_DEVICE_TYPE_CAMERA_V2 = 35;     // 摄像机设备V2(带国标编码）

    /**
     * IVS 录像类型
     */
    public static final int IVS_RECORD_TYPE_PLATFORM = 0;   // 平台录像

    public static final int IVS_RECORD_TYPE_CAMERA = 1;     // 前端录像

    public static final int IVS_RECORD_TYPE_BACKUP = 2;     // 备份服务器录像

    public static final int IVS_RECORD_TYPE_DISASTER = 3;    // 容灾录像

    public static final int IVS_RECORD_TYPE_THIRD_PARTY_PIC = 4;  // 第三方图片备份

    public static final int IVS_RECORD_TYPE_CAMERA_PIC = 5;    // 设备图片备份

    public static final int AUDIT_LOG_OP_TYPE_LOGIN = 0;    // 登录

    public static final int AUDIT_LOG_OP_TYPE_QUERY = 1;     // 查询

    public static final int AUDIT_LOG_OP_TYPE_ADD = 2;        // 新增

    public static final int AUDIT_LOG_OP_TYPE_UPDATE = 3;     // 修改

    public static final int AUDIT_LOG_OP_TYPE_DELETE = 4;     // 删除

}
